A big thanks goes out to Sandeep Panda and his blog showing how to build an autocomplete for an Angular JS application.
http://www.htmlxprs.com/post/32/creating-an-angularjs-autocomplete-tag-input-widget
7 | |
8 | |
A big thanks goes out to Sandeep Panda and his blog showing how to build an autocomplete for an Angular JS application.
http://www.htmlxprs.com/post/32/creating-an-angularjs-autocomplete-tag-input-widget
<?php | |
/** | |
* Implements hook_user_operations(). | |
*/ | |
function example_user_operations() { | |
$operations = array( | |
'example_resend_welcome_email' => array( | |
'label' => t('Re-send welcome e-mail'), | |
'callback' => 'example_resend_welcome_email', |
// Returns true if the account has the 'foo' or 'bar' roles. | |
return count(array_intersect($account->roles, ['foo', 'bar'])); |
/** | |
* @see https://www.drupal.org/documentation/entity-metadata-wrappers | |
* @example usage: my_dpm($wrapped_object); | |
*/ | |
function my_dpm($w) { | |
$values = array(); | |
foreach ($w->getPropertyInfo() as $key => $val) { | |
$values[$key] = $w->$key->value(); | |
} | |
$callers = debug_backtrace(); |
#my-button { | |
background-color: #4e69a2; | |
border-color: #435a8b #3c5488 #334c83; | |
color: #fff; | |
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2); | |
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); | |
} | |
#my-button:after { | |
background-image: url("FB-f-Logo__white_29.png"); /* get image from https://www.facebookbrand.com/ */ | |
background-position: 0% 0%; |
setInterval(function() { | |
$.mobile.loading('show', { | |
textVisible: true, | |
html: '<div style="text-align: center;"><h2>Saved!</h2></div>' | |
}); | |
setTimeout(function() { | |
$.mobile.loading().hide(); | |
}, 420); | |
}, 1); |