You are here

function opigno_quiz_app_post_install in Opigno Quiz App 7

Post install callback when the module is installed through apps.

1 string reference to 'opigno_quiz_app_post_install'
opigno_quiz_app_apps_app_info in ./opigno_quiz_app.app.inc
Implements hook_apps_app_info().

File

./opigno_quiz_app.app.inc, line 20
App configuration.

Code

function opigno_quiz_app_post_install() {
  $item = array(
    'link_title' => st('My achievments'),
    'link_path' => 'my-achievements',
    'menu_name' => 'main-menu',
    'options' => array(
      'attributes' => array(
        'class' => array(
          'icon',
          'icon-certificates',
        ),
      ),
    ),
  );
  menu_link_save($item);
  menu_rebuild();
}