This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /** | |
| * Implements hook_menu(). | |
| */ | |
| function cvt_termination_menu() { | |
| $items = array(); | |
| $items['terminate/%userid/%'] = array( | |
| 'type' => MENU_LOCAL_TASK, | |
| 'page callback' => 'node_add', | |
| 'page arguments' => array('enrollee_termination', 1, 2), | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /** | |
| * Implements hook_menu(). | |
| */ | |
| function cvt_termination_menu() { | |
| $items = array(); | |
| $items['terminate/%userid/%'] = array( | |
| 'type' => MENU_LOCAL_TASK, | |
| 'page callback' => 'node_add', | |
| 'page arguments' => array('enrollee_termination', 1, 2), | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function _cvt_client_trigger_field_collection_modification($entity, $type){ | |
| //If this isn't a field_collection submitted through a form, | |
| //and ready to trigger Rules, we don't want it. | |
| $entity_types = array( | |
| 'field_dependent' => 'dependent', | |
| 'field_plans' => 'plans', | |
| 'field_enrollee' => 'enrollee', | |
| 'field_dependent_cancellation' => 'dependent_cancellation', | |
| ); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function cvt_management_report_census_form_submit($form, &$form_state) { | |
| //POSTS - FORM INFO | |
| $district_cvtid = $form_state['values']['district']; //hidden | |
| $eff_month = $form_state['values']['eff_month']; | |
| $plan_year = $form_state['values']['plan_year']; | |
| //FORMAT THE MONTH/YEAR FOR THE API | |
| if ($eff_month >= 10) { | |
| //DOUBLE DIGIT MONTHS DO NOT NEED TO BE PADDED | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function <YOURTHEME>_links__system_main_menu($variables) { | |
| $menu = ''; | |
| // Adds heading class | |
| $menu .= '<h2 class="'; | |
| foreach ($variables['heading']['class'] as $key) { | |
| $menu .= $key . ' '; | |
| } | |
| $menu .= '">Main menu</h2>'; | |
| // Adds UL classes | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| /** | |
| * Implements hook_entity_info_alter(). | |
| */ | |
| function panelizer_variant_entity_info_alter(&$entity_info) { | |
| $entity_info['node']['view modes']['doctoral_programs'] = array( | |
| 'label' => t('Doctoral Programs'), | |
| 'custom settings' => TRUE, | |
| ); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| function custom_multiling_enable() { | |
| $admin_role = user_role_load_by_name('administrator'); | |
| $modules = array('locale','translation','i18n','i18n_block','i18n_variable', 'i18n_menu','i18n_node', 'i18n_string', 'l10n_client','l10n_update','title','entity_translation', 'i18n_panels'); | |
| foreach ($modules as $module) { | |
| //check one more time if module is installed & enabled before perm set | |
| if (!module_exists($module)) { | |
| module_enable(array($module), TRUE); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | //Hunt and peck other FPP settings and change them to default language | |
| $tables = db_query('SHOW TABLES')->fetchAll(); | |
| foreach($tables as $table) { | |
| $key = key($table); | |
| $tablename = $table->$key; | |
| $tocheck = db_field_exists($tablename, 'entity_type'); | |
| $tocheck2 = db_field_exists($tablename, 'language'); | |
| if ($tocheck && $tocheck2) { | |
| if (strpos($tablename, 'field_data_field') !== false) { | |
| $fpp = db_select($tablename, 't') | 
NewerOlder