OK I'm stuck again.
When I turn the debugging blocks ON everything is roses.
When I turn them off I get:
Warning: Invalid argument supplied for foreach() in element_children() (line 6125 of /Applications/MAMP/htdocs/fnotes-dev/includes/common.inc).
Warning: Cannot use a scalar value as an array in drupal_render() (line 5612 of /Applications/MAMP/htdocs/fnotes-dev/includes/common.inc).
Warning: Cannot use a scalar value as an array in drupal_render() (line 5667 of /Applications/MAMP/htdocs/fnotes-dev/includes/common.inc).
I'm using the XHTML starter kit from Omega 2.x (Yes I know I should be using 3.x but it just was not working for me.)
I haven't really made any changes to the .php files other than what's needed for the subtheme.
Please someone tell me what I'm doing wrong.
fiscalnotes.info is:
name = fiscalnotes
description = XHTML Starterkit for <a href="http://himer.us/omega960"><strong>Omega</strong></a>.
screenshot = screenshot.png
core = 7.x
base theme = omega
; ------- Declare default stylesheets
stylesheets[all][] = css/reset.css
stylesheets[all][] = css/fnlayout.css
stylesheets[all][] = css/text.css
; ------- Declare default JavaScript includesI haven't changed anything else.
template.php is:
/**
* Implements hook_theme().
*/
function fiscalnotes_theme(&$existing, $type, $theme, $path) {
$hooks = array();
return $hooks;
}
function fiscalnotes_form_alter(&$form, &$form_state, $form_id) {
if ($form_id == 'search_block_form') {
$form['search_block_form']['#title'] = t('Search'); // Change the text on the label element
$form['search_block_form']['#title_display'] = 'invisible'; // Toggle label visibilty
$form['search_block_form']['#size'] = 25; // define size of the textfield
$form['search_block_form']['#default_value'] = t('Search'); // Set a default value for the textfield
$form['actions']['submit']['#value'] = t('GO!'); // Change the text on the submit button
// Add extra attributes to the text box
$form['search_block_form']['#attributes']['onblur'] = "if (this.value == '') {this.value = 'Search';}";
$form['search_block_form']['#attributes']['onfocus'] = "if (this.value == 'Search') {this.value = '';}";
}
}
function fiscalnotes_preprocess_node(&$variables) {
if ($variables['submitted']) {
$variables['submitted'] = t('Posted: !datetime', array( '!datetime' => format_date($variables['node']->created, 'custom', 'F, Y')));
}
}theme-settings.php is:
function fiscalnotes_form_system_theme_settings_alter(&$form, &$form_state) {
// Include any changes to the theme settings here.
}