animation-website-headstartcms
API, Apps, Coding, CSS, Directory, HTML, Webdevelopment, Website

Where to get txt animation for my website

Searching in the website hasbro.com and find out that the website has script animation for their products marketing campaign. Where to find the script or code they are using in their website. I search the script from https://greensock.com/SplitText this website will teach you how to use the animation graphics for your website. To get customized done faster you need knowledge…

Continue Reading

API, Coding

Editing the open hotel theme in search form booking

Code: <?php /** * Implements hook_form_FORM_ID_alter(). */ function demo_form_alter(&$form, &$form_state, $form_id) { dpm($form); drupal_set_message(‘test’); //$label[‘#title’] = t(‘Date Plan’); //$form[‘edit-rooms-end-date’][‘#title’] = t(‘Date End’); $form[‘rooms_date_range’][‘rooms_start_date’][‘#title’] = t(‘LEAVING ON’); $form[‘rooms_date_range’][‘rooms_end_date’][‘#title’]= t(‘FOR’); $form[‘conditions’][‘rooms’][‘#title’]= t(‘ROOMS’); $form[‘rooms_fieldset’][‘table_header’][‘#markup’]= t(‘ADULTS | CHILD ‘); $form[‘actions’][‘submit’][‘#value’]= t(‘FIND TOURS’); } Add this in your module then enable: filter the search using the txtsearch Extension name:  demo.info ;$Id$ name = txtsearch description…

Continue Reading

API, PHP

Using a form hook alter in drupal exmaple1

Modifying Forms Using Alter Hooks The ability of themes to use alter hooks is new in Drupal 7.   Using an alter hook is perfect for quick changes like: -Simple changes to form labels, descriptions, and other properties. -Changing the order in which the form elements print using the #weight property. -Wrapping a few elements in a <div> or <fieldset>.…

Continue Reading