Commit 24b2f353 authored by theo lem's avatar theo lem
Browse files

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

Fix menu access callback for `node/add/form1`

See merge request framasoft/framaforms!69
parents b3ed9549 0c48243c
......@@ -57,7 +57,9 @@ 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');
variable_set('framaforms_forms_per_user_limit', 200);
if(variable_get('framaforms_forms_per_user_limit') == NULL){
variable_set('framaforms_forms_per_user_limit', 200);
}
/* various other custom manipulation */
/* Hide Drupal default banner */
$theme_settings = variable_get('theme_settings');
......
......@@ -53,10 +53,8 @@ function framaforms_menu () {
* @return void
*/
function framaforms_menu_alter (&$items) {
$items['node/add/form1'] = array(
'page callback' => 'framaforms_check_users_forms',
'type' => MENU_CALLBACK,
);
$items['node/add/form1']['access arguments'][] = $items['node/add/form1']['access callback'];
$items['node/add/form1']['access callback'] = 'framaforms_check_users_forms';
}
/**
......
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