templates/shared/template.php.erb in compass-aurora-os-0.2.3 vs templates/shared/template.php.erb in compass-aurora-os-0.3.0.alpha

- old
+ new

@@ -3,19 +3,17 @@ /** * Override or insert variables into the maintenance page template. * * @param $vars * An array of variables to pass to the theme template. - * @param $hook - * The name of the template being rendered ("maintenance_page" in this case.) */ -function <%= project_name %>_preprocess_maintenance_page(&$vars, $hook) { +function <%= project_name %>_preprocess_maintenance_page(&$vars) { // When a variable is manipulated or added in preprocess_html or // preprocess_page, that same work is probably needed for the maintenance page // as well, so we can just re-use those functions to do that work here. - // <%= project_name %>_preprocess_html($variables, $hook); - // <%= project_name %>_preprocess_page($variables, $hook); + // <%= project_name %>_preprocess_html($vars); + // <%= project_name %>_preprocess_page($vars); // This preprocessor will also be used if the db is inactive. To ensure your // theme is used, add the following line to your settings.php file: // $conf['maintenance_theme'] = '<%= project_name %>'; // Also, check $vars['db_is_active'] before doing any db queries. @@ -35,12 +33,10 @@ /** * Implements hook_preprocess_html() * * @param $vars * An array of variables to pass to the theme template. - * @param $hook - * The name of the template being rendered ("html" in this case.) */ /* -- Delete this line if you want to use this function function <%= project_name %>_preprocess_html(&$vars) { } @@ -48,12 +44,10 @@ /** * Override or insert variables into the page template. * * @param $vars * An array of variables to pass to the theme template. - * @param $hook - * The name of the template being rendered ("page" in this case.) */ /* -- Delete this line if you want to use this function function <%= project_name %>_preprocess_page(&$vars) { } @@ -61,57 +55,49 @@ /** * Override or insert variables into the region templates. * * @param $vars * An array of variables to pass to the theme template. - * @param $hook - * The name of the template being rendered ("region" in this case.) */ /* -- Delete this line if you want to use this function -function <%= project_name %>_preprocess_region(&$vars, $hook) { +function <%= project_name %>_preprocess_region(&$vars) { } // */ /** * Override or insert variables into the block templates. * * @param $vars * An array of variables to pass to the theme template. - * @param $hook - * The name of the template being rendered ("block" in this case.) */ /* -- Delete this line if you want to use this function -function <%= project_name %>_preprocess_block(&$vars, $hook) { +function <%= project_name %>_preprocess_block(&$vars) { } // */ /** * Override or insert variables into the entity template. * * @param $vars * An array of variables to pass to the theme template. - * @param $hook - * The name of the template being rendered ("entity" in this case.) */ /* -- Delete this line if you want to use this function -function <%= project_name %>_preprocess_entity(&$vars, $hook) { +function <%= project_name %>_preprocess_entity(&$vars) { } // */ /** * Override or insert variables into the node template. * * @param $vars * An array of variables to pass to the theme template. - * @param $hook - * The name of the template being rendered ("node" in this case.) */ /* -- Delete this line if you want to use this function -function <%= project_name %>_preprocess_node(&$vars, $hook) { +function <%= project_name %>_preprocess_node(&$vars) { $node = $vars['node']; } // */ /** @@ -131,14 +117,12 @@ /** * Override or insert variables into the comment template. * * @param $vars * An array of variables to pass to the theme template. - * @param $hook - * The name of the template being rendered ("comment" in this case.) */ /* -- Delete this line if you want to use this function -function <%= project_name %>_preprocess_comment(&$vars, $hook) { +function <%= project_name %>_preprocess_comment(&$vars) { $comment = $vars['comment']; } // */ /**