I’m taking first steps in building a module for Drupal 7 and am trying to create a static page within hook_menu function. In the $items array, for ‘page callback’ I create an very simple function named ‘semi_static_page’. This simple function returns some html. the code is below.
$items['admin/config/media/tsoundcloud/config/soundcloud_static'] = array( 'title' => t('Semi Static Page'), 'description' => 'Temp page to show data', 'page callback' => 'semi_static_page', 'access arguments' => array('access administration pages'), 'type' => MENU_NORMAL_ITEM, ); function semi_static_page(){ $output = 'this is some output, etc…….’; return $output; }
But this page generate the following error.
Fatal error: Unsupported operand types in /Users/tomcarden/Sites/sweetteas/includes/form.inc on line 1079
How can this be resolved? Ultimately I want to load an .inc in the semi_static_page function.
thanks in advance!