ombucore / drupal-ombuwire

Help OMBU wire up a Drupal site
0 stars 0 forks source link

OMBUWIRE

Helps wire up a Drupal site from wireframs, designs, and static pages.

Features

Wireframe/Design/Static page menu

Ombu Wire creates a menu to show the various assets/specs associated with a Drupal url. To create menu items, implement the hook_ombuwire_sitemap() hook which returns an multidimensional array in the following format:

$sitemap = array(
  array('#markup' => '<h3>Our Site</h3>'),
  '<front>' => array(
    '#title' => "Home",
    '#status' => OMBUWIRE_NOT_STARTED,
    'wireframe' => '/path/to/file.jpg',
    'design' => '/path/to/file.jpg',
    'static' => '/path/to/file.html',
  ),
  'about' => array(
    '#title' => "About",
    '#status' => OMBUWIRE_NOT_STARTED,
    'wireframe' => array(
      '/path/to/file.jpg',
      '/path/to/file.jpg',
    ),
    'design' => $path .'/design/c4-state-homepage.jpg',
    '#children' => array(
      'about/our-team' => array(
        '#title' => "Our Team",
        '#status' => OMBUWIRE_NOT_STARTED,
        'wireframe' => '/path/to/file.jpg',
        'design' => '/path/to/file.jpg',
      ),
    ),
  ),
);

return $sitemap;

There are a few options for each element of the array. If the array element's key is: