Recent Blogs
to check the user if logged-in or not just use this drupal function user_is_logged_in()
it will return a bool(true/false) data type.
<?php
print l('<img src="'.path_to_theme().'/images/icons/page/hris.png" alt="Business Package - Human Resource Information System (HRIS) " class="business_package_images" />','solutions/hris_ja',array('html' => TRUE));
?>
notice there are 3 parameters: l(1st_param,2nd_param,3rd_param);
1st_param: the html image
2nd_param: the url/path
3rd_param: enable html to TRUE
there are lot of ways to diable a specific field one may use css(display:none), others used the cck permission.
here, we will use the access array key.
ex.
form['field_name']['#access'] = FALSE;
by defining this field to FALSE all it's attribute are set-off even the required field!
Hope this helps!
- 1 of 11
- ››






