You are here

function tinybrowser_install_profiles in TinyBrowser 7

Install initial role profiles

2 calls to tinybrowser_install_profiles()
tinybrowser_admin in ./tinybrowser.module
Admin page
tinybrowser_install in ./tinybrowser.install
Implements hook_install().

File

./tinybrowser.profile.inc, line 20

Code

function tinybrowser_install_profiles() {

  /*
    // already installed
    if (in_array(1, array_keys(variable_get('tinybrowser_profiles', array())))) {
      return FALSE;
    }
  */
  $profiles = array(
    1 => tinybrowser_admin_profile(),
    2 => tinybrowser_sample_profile(),
  );
  $role_profile = array();
  variable_set('tinybrowser_profiles', $profiles);
  variable_set('tinybrowser_roles_profiles', $role_profile);
  return $profiles;
}