I have set up a new page in my admin for my module like so:
/**
* Implements hook_menu().
*/
function scraper_menu() {
$items = array();
$items['admin/scraper'] = array(
'title' => 'Scraper',
'description' => 'The main action page in the admin area where we control our scrapers.',
'page callback' => 'scraper_page',
'access arguments' => array('administer users'),
'type' => MENU_NORMAL_ITEM,
);
return $items;
}
/**
* Page callback: Scraper page
*
* @see scraper_menu()
*/
function scraper_page() {
return '<p>Hello world</p>';
}
When I navigate to admin/scraper I get the following error:
Fatal error: Unsupported operand types in /######/includes/form.inc on line 1079
So how do I create a custom HTML page in the admin?