Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In cvs 4.7 settings function is
function article_menu($may_cache) {
$items = array();
$items[] = array('path' => 'article', 'title' => t('Article listings'), 'callback' => 'article_page', 'access' => user_access('access content'), 'type' => MENU_CALLBACK);
return $items;
}
Changed it to
function article_menu($may_cache) {
$items = array();
$items[] = array('path' => 'article', 'title' => t('Article listings'), 'callback' => 'drupal_get_form','callback arguements' => 'article_page', 'access' => user_access('access content'), 'type' => MENU_NORMAL_ITEM);
return $items;
}
Still having problems accessing the settings part on 5.0 code freeze but that's probably just my learning curve
Comments
Comment #1
ctmattice1 CreditAttribution: ctmattice1 commentedAbove Patch doesn't work. It should be
Also in the function artilce_setting the last line of code reads
Should be
Comment #2
msameer CreditAttribution: msameer commented5.0 version released. Will mark this as fixed. Thanks.
Comment #3
msameer CreditAttribution: msameer commented