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

ctmattice1’s picture

Above Patch doesn't work. It should be

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);

  $items[] = array('path' => 'admin/settings/article', 'title' => t('Article Settings'), 'callback' => 'drupal_get_form','callback arguments' => 'article_settings', 'access' => user_access('access content'), 'type' => MENU_NORMAL_ITEM);

  return $items;

Also in the function artilce_setting the last line of code reads

return $form

Should be

return system_settings_form($form);
msameer’s picture

Assigned: Unassigned » msameer
Status: Needs review » Fixed

5.0 version released. Will mark this as fixed. Thanks.

msameer’s picture

Status: Fixed » Closed (fixed)