Commit 1e8c8127 authored by theo lem's avatar theo lem
Browse files

Merge branch 'revert-24b2f353' into 'master'

Revert "Merge branch 'fix-menu-access-callback' into 'master'"

See merge request framasoft/framaforms!70
parents 24b2f353 8df57223
......@@ -57,9 +57,7 @@ function framaforms_install () {
variable_set('framaforms_deletion_period_value', 9); // default expiration-deletion time interval
variable_set('framaforms_notification_period_value', 2); // default notification-expiration time interval
variable_set('site_contact_url', 'https://contact.framasoft.org/#framaforms');
if(variable_get('framaforms_forms_per_user_limit') == NULL){
variable_set('framaforms_forms_per_user_limit', 200);
}
variable_set('framaforms_forms_per_user_limit', 200);
/* various other custom manipulation */
/* Hide Drupal default banner */
$theme_settings = variable_get('theme_settings');
......
......@@ -53,8 +53,10 @@ function framaforms_menu () {
* @return void
*/
function framaforms_menu_alter (&$items) {
$items['node/add/form1']['access arguments'][] = $items['node/add/form1']['access callback'];
$items['node/add/form1']['access callback'] = 'framaforms_check_users_forms';
$items['node/add/form1'] = array(
'page callback' => 'framaforms_check_users_forms',
'type' => MENU_CALLBACK,
);
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment