code
<h3><nodule_name>.info</h3>
name = GoalTrue
description = Goal tracking system
package = GoalTrue
core = 7.x
files[] = goaltrue.module
<h3><module_name>.module</h3>
/**
* A module for tracking goals and due dates
*/
/**
* Implement hook_help().
*/
function goaltrue_help($path, $arg){
if($path == 'admin/help#goaltrue'){
return t('No help notes yet. Plese wait.');
}
}
Darryn Nyberg
Posted Monday 29th 2012
<?php print theme('links__system_main_menu', array(
'links' => $main_menu,
'attributes' => array(
'id' => '',
'class' => array(''),
),
'heading' => array(
'text' => t('Main menu'),
'level' => 'h2',Darryn Nyberg
Posted Friday 19th 2012
SCENARIO
I need to theme the edit page for ONLY article node type
GIVEN you have a node type of "article"
AND you want the node type to have its own edit template
WHEN you add/edit a node type of "article"
THEN the custom node type (edit "edit article") template is used.
The following works in Drupal 7
Darryn Nyberg
Posted Monday 20th 2012
Darryn Nyberg
Posted Friday 17th 2012
You can bake a drop down menu directly into a theme but we are going a different direction today. We are going to install "nice menu", a contributed module that creates blocks that are based on your menu. It has infinitely deep fly out depth. Nice.
We will install and than style this module so that it does not have the default grey theme that it comes with.
Darryn Nyberg
Posted Friday 17th 2012


