You are here

function _om_new_link in OM Maximenu 6

Same name and namespace in other branches
  1. 8 inc/om_maximenu.admin.inc \_om_new_link()
  2. 7 inc/om_maximenu.admin.inc \_om_new_link()

OM Default New Links

1 call to _om_new_link()
om_maximenu_links_order in inc/om_maximenu.admin.inc
OM Links

File

inc/om_maximenu.admin.inc, line 805
OM Maximenu Admin Configuration

Code

function _om_new_link($count = 0, $roles = array()) {
  $num = $count + 5;

  // additional 5 new blank links
  $out = array();
  for ($i = $count; $i < $num; $i++) {

    // new links with default values
    $out[$i] = array(
      'link_title' => 'New Link',
      'link_title_option' => 'title',
      'path_icon' => '',
      'icon_option' => 0,
      'php_option' => 0,
      'path' => '',
      'path_query' => '',
      'path_fragment' => '',
      'weight' => 0,
      'id' => '',
      'class' => '',
      'rel' => '',
      'target' => '_self',
      'description' => '',
      'description_option' => 'hover',
      'roles' => $roles,
    );
  }
  return $out;
}